build: bump runc to v1.2.8#10791
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request performs a security-focused dependency update, primarily targeting the Highlights
New Features🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
🟠 PR Severity: HIGH
🟠 High (4 files)
🟡 Medium (2 files)
🟢 Low (1 file)
AnalysisThis PR updates Go module dependencies, primarily for the The changes are dependency/lockfile updates (go.mod/go.sum), which are typically low-risk in isolation, but dependency changes to the No bump rules triggered: 7 files (threshold: >20), 83 lines changed (threshold: >500), and no multiple distinct critical packages touched. To override, add a |
There was a problem hiding this comment.
Code Review
This pull request updates several dependencies, primarily runc to v1.2.8 to address security vulnerabilities. Other updates include logrus, go-systemd, and urfave/cli. Feedback was provided questioning the validity of the 2025 CVE years mentioned in the release notes.
| ## Code Health | ||
|
|
||
| * Updated `github.com/opencontainers/runc` to `v1.2.8`, which includes | ||
| fixes for CVE-2025-31133, CVE-2025-52565, and CVE-2025-52881. |
|
@rloomba, remember to re-request review from reviewers when ready |
bhandras
left a comment
There was a problem hiding this comment.
Can you pls bump runc in kvdb too?
LGTM, thank you!
|
Needs rebase. |
8b2a9c8 to
87edd50
Compare
addressed in 87edd50 |
There was a problem hiding this comment.
Had some style comments and please drop the release notes, it creates unnecessary noise for the user.
Can you also next time describe how you analyse these vulnerabilities, basically which tool you used. Moreover can you also next time evaluate the severity of this so the reviewer knows immediately how to treat this vulnerability bump.
Analysis of the vulnerability:
GO-2025-4098 / CVE-2025-52881 is a runc bug where a malicious container setup with shared mounts can race /proc writes, potentially causing container escape or DoS. In LND it is pulled in through dockertest for the Postgres test fixture, which starts a fixed postgres:11 container configuration. LND does not use this in normal runtime code, so realistic exposure is limited to someone influencing the test container/image or Docker environment.
Govulncheck analysis:
govulncheck ./...
Before the bump it reports vulnerable github.com/opencontainers/runc; after runc v1.2.8, GO-2025-4098 disappears. Use the default symbol scan for relevance; -scan=module is broader and noisier.
| modernc.org/sqlite v1.38.2 | ||
| ) | ||
|
|
||
| require github.com/kr/pretty v0.3.1 // indirect |
There was a problem hiding this comment.
why is this in its own block ? Lets move it to the other dependencies so it looks prettier
|
|
||
| ## Code Health | ||
|
|
||
| * Updated `github.com/opencontainers/runc` to `v1.2.8`, which includes |
There was a problem hiding this comment.
I think we should drop the release notes entry for this bump. The affected dependency is pulled in through the Docker-based SQL/Postgres test harness (dockertest), not through normal lnd runtime behavior. So while bumping runc is fine dependency hygiene, listing it in the user-facing release notes may imply that the main lnd software itself was meaningfully affected by these CVEs, which is not the case
| ) | ||
|
|
||
| require github.com/btcsuite/btcd/v2transport v1.0.1 // indirect | ||
| require ( |
There was a problem hiding this comment.
let's move this block also to the other direct dependecies
87edd50 to
55b362e
Compare
Change Description
Bump
github.com/opencontainers/runctov1.2.8in theroot,sqldb, andsqldb/v2modules.This updates
runcto the patched version for the following CVEs:Steps to Test
Run the following compile-only checks:
Pull Request Checklist
Testing
Code Style and Documentation
fight bot spam.
and lines wrap at 80.